What is the appropriate way to safely stop a thread in Java without using thread.stop()

visit shbcf.ru